package org.yscz.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @program: pe
 * @description: 被测人表
 * @author: muqs
 * @create: 2021-08-21
 **/
@Data
@ToString
@Accessors(chain = true)
@TableName(value = "t_testee")
public class Testee implements Serializable {

    /**
     * 被测人ID
     */
    @TableId(value = "testee_id", type = IdType.AUTO)
    private Long testeeId;

    /**
     * 被测人姓名
     */
    @TableField(value = "testee_name")
    @Excel(name = "姓名")
    private String testeeName;

    /**
     * 性别 0-男 1-女
     */
    @TableField(value = "sex")
    @Excel(name = "性别", replace = {"男_0", "女_1"})
    private Integer sex;

    /**
     * 年龄
     */
    @TableField(value = "age")
    @Excel(name = "年龄")
    private Integer age;

    /**
     * 照片地址
     */
    @TableField(value = "image_url")
    private String imageUrl;

    /**
     * 裁剪之后的图片地址
     */
    @TableField(value = "image_url_last")
    private String imageUrlLast;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 班级ID
     */
    @TableField(value = "testee_group_id_fk")
    private Long testeeGroupIdFk;
}
